package lyc.springcloud.admin.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LoginDto extends Throwable implements Serializable {
    private Integer id;
    private String userId;
    private String username;
    private String password;
    private String phoneNum;
    private String email;
    private String address;

    private String userLogo;
    private String userLevel;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT + 8")
    private String loginTime;
    private String loginAddress;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT + 8")
    private String lastLoginTime;
    private String lastLoginAddress;

    private String createBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT + 8")
    private String createDate;
    private String updateBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT + 8")
    private String updateDate;

    private int status;
    private int isExpire;
    private int isLock;
    private int isDelete;
}
